//
//  MPCActionSheetConfig.m
//  MPCActionSheet
//
//  Created by macRong on 08/28/2017.
//  Copyright (c) 2017 jxzjxz. All rights reserved.
//

#import "MPCActionSheetConfig.h"
#import "MPCActionSheetDefines.h"


@implementation MPCActionSheetConfig


+ (MPCActionSheetConfig *)config
{
    static id _config = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _config = [[self alloc] initInstance];
    });
    
    return _config;
}

- (instancetype)initInstance
{
    if (self = [super init])
    {
        self.titleFont              = [UIFont YXFontOfSize:14.0f];
        self.buttonFont             = [UIFont YXFontOfSize:18.0f];
        self.destructiveButtonColor = MPBConfig.color.c3;

        self.titleColor             = MPBConfig.color.c10;
        self.buttonColor            = MPBConfig.color.c12;
        self.cancelButtonColor      = MPBConfig.color.c10;
        self.separatorColor         = MPBConfig.color.c9;

        self.titleEdgeInsets        = UIEdgeInsetsMake(15.0f, 15.0f, 15.0f, 15.0f);
        self.blurEffectStyle        = UIBlurEffectStyleLight;
        
        self.buttonHeight           = 49.0f;
        self.animationDuration      = 0.2f;
        self.darkOpacity            = 0.3f;
    }
    
    return self;
}

- (instancetype)init
{
    return [self initInstance];
}

- (NSInteger)cancelButtonIndex
{
    return 0;
}


@end
